<script>
	$(function() {
		$( "#LocationDate" ).datepicker();
	});
	$(document).ready(function(){
		<!--
		var currentTime = new Date()
		var month = currentTime.getMonth() + 1
		var day = currentTime.getDate()
		var year = currentTime.getFullYear()
		$( "#LocationDate" ).val(month + "/" + day + "/" + year)
		//-->
	});
	</script>

<div class="locations form">
<?php echo $this->Form->create('Location');?>
	<fieldset>
		<legend><?php __('Add Location'); ?></legend>
		<div class="table">
				<img src="../../img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
				<img src="../../img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
				<table class="listing form" cellpadding="0" cellspacing="0">
					<tr>
						<th class="full">Lokasi</th>
						<th class="full">Tarikh</th>
						<th class="full">Nama Pegawai</th>
					</tr>
					<tr>
						<td class="first"><?php echo $this->Form->input('district_id',array('div'=>false,'label'=>false)); ?></td>
						<td><input type="text" id="LocationDate" maxlength="255" name="data[Location][date]" style="width:85px"></td>
						<td class="last"><?php echo $this->Form->input('pic',array('label'=>false)); ?></td>
					</tr>
				</table>
		</div>
	</fieldset>
<?php echo $this->Form->hidden('item_id',array('value'=>$id))?>
<?php echo $this->Form->end(__('Tambah', true));?>
</div>
<!-- div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Locations', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Items', true), array('controller' => 'items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Item', true), array('controller' => 'items', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Districts', true), array('controller' => 'districts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New District', true), array('controller' => 'districts', 'action' => 'add')); ?> </li>
	</ul>
</div -->